<?php
<object class="frame_tire_list" name="frame_tire_list" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Tire List</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">423</property>
  <property name="IsMaster">0</property>
  <property name="Name">frame_tire_list</property>
  <property name="Width">400</property>
  <property name="OnCreate">frame_tire_listCreate</property>
  <object class="JTPlatinumGrid" name="JTGridTires" >
    <property name="AllowDelete">0</property>
    <property name="AllowInsert">0</property>
    <property name="AllowUpdate">0</property>
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="CanDragSelect">0</property>
    <property name="CanMultiColumnSort">0</property>
    <property name="CanRangeSelect">0</property>
    <property name="CanSelect">0</property>
    <property name="CellData">a:0:{}</property>
    <property name="Columns">a:0:{}</property>
    <property name="EvenRowStyle">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="Header">
        <property name="FilterDelay">0</property>
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
        <property name="ShowFilterBar">0</property>
        <property name="ShowGroupBar">0</property>
        <property name="SimpleFilter">0</property>
    </property>
    <property name="Height">382</property>
    <property name="Name">JTGridTires</property>
    <property name="OddRowStyle">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="Pager">
        <property name="RowsPerPage">5</property>
        <property name="ShowPageInfo">0</property>
        <property name="ShowRecordCount">0</property>
        <property name="ShowTopPager">0</property>
    </property>
    <property name="ReadOnly">1</property>
    <property name="RowDataStyles">a:0:{}</property>
    <property name="SelectedRowStyle">
        <property name="Font"><![CDATA[a:9:{s:6:&quot;Family&quot;;s:0:&quot;&quot;;s:4:&quot;Size&quot;;s:0:&quot;&quot;;s:10:&quot;LineHeight&quot;;s:0:&quot;&quot;;s:5:&quot;Style&quot;;s:0:&quot;&quot;;s:4:&quot;Case&quot;;s:0:&quot;&quot;;s:7:&quot;Variant&quot;;s:0:&quot;&quot;;s:5:&quot;Color&quot;;s:0:&quot;&quot;;s:5:&quot;Align&quot;;s:6:&quot;taNone&quot;;s:6:&quot;Weight&quot;;s:0:&quot;&quot;;}]]></property>
    </property>
    <property name="ShowSelectColumn">0</property>
    <property name="SiteTheme"></property>
    <property name="Top">41</property>
    <property name="Width">400</property>
    <property name="OnShow">JTGridTiresShow</property>
    <property name="jsOnDataLoad">JTGridTiresJSDataLoad</property>
  </object>
  <object class="JTJavaScript" name="showTireAjax" >
    <property name="Code"><![CDATA[var xmlhttp
function showTire(tire_id)
{
	//MOUNT	
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
		alert (&quot;Your browser does not support AJAX!&quot;);
		return;
		  }
		  var url=&quot;setTireInfoMount.php&quot;;
		  url=url+&quot;?tire_id=&quot;+tire_id;
		  xmlhttp.onreadystatechange=stateChanged;
		  xmlhttp.open(&quot;GET&quot;,url,true);
		  xmlhttp.send(null);
		  }
		  
		  function stateChanged()
		  {
			  if (xmlhttp.readyState==4)
			    {
				      var my_array = eval(xmlhttp.responseText);
				      var spare_flag = parent.document.getElementById('editMountWheel').value;
				
				        var axle = parent.document.getElementById('editMountAxle').value;
				          var wheel = parent.document.getElementById('editMountWheel').value;
				            var hiddenVin = parent.document.getElementById('hiddenVin').value;
				              
				              if(spare_flag=='Spare')
				               {
				               parent.document.getElementById('editMountDescription').value ='Add Spare Tire ID/SN:'+' '+my_array[0];
			                   }
			                   else
			                   {
				               parent.document.getElementById('editMountDescription').value ='Mount Tire ID/SN:'+' '+my_array[0];
			                   }
				                parent.document.getElementById('editMountCost').value = my_array[1];
				                 parent.document.getElementById('hiddenTireIdSave').value = my_array[2];
				                 parent.document.getElementById('editMountTread').value = my_array[3];
                                 parent.document.getElementById('editMountPressure').value = my_array[4];
				                   }
				                   }
				                   
				                   function GetXmlHttpObject()
				                   {
					                   if (window.XMLHttpRequest)
					                     {
						                       return new XMLHttpRequest();
						                         }
						                         if (window.ActiveXObject)
						                           {
							                             return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
							                               }
							                               return null;
							                               }]]></property>
    <property name="Height">20</property>
    <property name="Left">289</property>
    <property name="Name">showTireAjax</property>
    <property name="Top">114</property>
    <property name="Width">90</property>
  </object>
  <object class="HiddenField" name="hfSearch" >
    <property name="Height">18</property>
    <property name="Left">289</property>
    <property name="Name">hfSearch</property>
    <property name="Top">123</property>
    <property name="Width">88</property>
  </object>
  <object class="HiddenField" name="hfFirstTireId" >
    <property name="Height">18</property>
    <property name="Left">289</property>
    <property name="Name">hfFirstTireId</property>
    <property name="Top">139</property>
    <property name="Width">88</property>
  </object>
  <object class="HiddenField" name="hfFirstCtr" >
    <property name="Height">18</property>
    <property name="Left">289</property>
    <property name="Name">hfFirstCtr</property>
    <property name="Top">99</property>
    <property name="Width">88</property>
  </object>
  <object class="Image" name="imgAdd" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Cursor">crPointer</property>
    <property name="Height">37</property>
    <property name="ImageSource">image/add_new.png</property>
    <property name="Layer">Reminder</property>
    <property name="Left">305</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">imgAdd</property>
    <property name="Top">3</property>
    <property name="Width">95</property>
    <property name="jsOnClick">imgAddJSClick</property>
    <property name="jsOnMouseOut">imgAddJSMouseOut</property>
    <property name="jsOnMouseOver">imgAddJSMouseOver</property>
  </object>
  <object class="JTJavaScript" name="delete" >
    <property name="Code"><![CDATA[function js_delete(tire_id, str_search)
{
	  var answer = confirm(&quot;Are you sure you want to delete this tire record?&quot;);
	    if(answer)
	      {
		   window.location = &quot;frame_tire_delete.php?tire_id=&quot;+tire_id+&quot;&amp;search=&quot;+str_search;
		  }
}]]></property>
    <property name="Height">36</property>
    <property name="Left">287</property>
    <property name="Name">delete</property>
    <property name="Top">41</property>
    <property name="Width">90</property>
  </object>
  <object class="JTJavaScript" name="edit" >
    <property name="Code">function editTire(tire_id)
{
var height = 350;
var width = 750;
var left = Math.floor((screen.availWidth/2) - (width/2));
var top = Math.floor((screen.availHeight/2) - (height/2));
window.open('pop_tire_edit.php?tire_id='+tire_id, 'tire_create','width='+width+',height='+height+',top='+top+',left='+left);
}</property>
    <property name="Height">20</property>
    <property name="Left">287</property>
    <property name="Name">edit</property>
    <property name="Top">73</property>
    <property name="Width">90</property>
  </object>
  <object class="Image" name="Image4" >
    <property name="Border">0</property>
    <property name="Height">40</property>
    <property name="ImageSource">image/search-bg.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image4</property>
    <property name="Top">1</property>
    <property name="Width">254</property>
  </object>
  <object class="Edit" name="edtSearch" >
    <property name="BorderStyle">bsNone</property>
    <property name="Color">transparent</property>
    <property name="Cursor">crText</property>
    <property name="Font">
        <property name="Align">taLeft</property>
        <property name="Color">#000000</property>
        <property name="LineHeight">12</property>
        <property name="Size">14</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">48</property>
    <property name="Name">edtSearch</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">15</property>
    <property name="Width">185</property>
    <property name="jsOnClick">edtSearchJSClick</property>
  </object>
  <object class="Image" name="btnSearch" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Cursor">crPointer</property>
    <property name="Height">24</property>
    <property name="Hint">Search</property>
    <property name="ImageSource">image/search-btn.png</property>
    <property name="Left">11</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">btnSearch</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="Top">14</property>
    <property name="Width">36</property>
    <property name="jsOnClick">btnSearchJSClick</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">151</property>
        <property name="Top">72</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
